package com.jd.controller;


import com.jd.common.DataGridResult;
import com.jd.service.ShopCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Administrator on 2017/9/20/020.
 */
@Controller
@RequestMapping("shopCar")
public class ShopCarController {
    @Autowired
    private ShopCarService shopCarService;

    @RequestMapping("list")
    @ResponseBody
    public DataGridResult list(Integer uid) {
        return shopCarService.findAllByUid(uid);
    }
}
